.@{widget-prefix-cls} {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;

  &.@{split-horizontal} {
    height: 100%;
    float: left;
  }

  .@{gutter} {
    background-color: var(--gutterColor,~'@{gutter-color}');
    background-repeat: no-repeat;
    background-position: 50%;

    [class ^= '@{gutter-collapse-prev}'], [class ^= '@{gutter-collapse-next}'] {
      visibility: hidden;
      position: absolute;
      display: inline-block;
      transform: translateY(-60%);
      z-index: 9999;
      width: @collapse-width;
      height: @collapse-height;
      pointer-events: visiblePainted;
      background-color: transparent;

      .@{arrow} {
        content: "";
        position: absolute;
        border: 10px solid transparent;
        cursor: pointer;

        &.@{hide} {
          visibility: hidden;
        }
      }
    }


    &.@{gutter-horizontal} {
      position: relative;
      height: 100%;
      float: left;
      cursor: col-resize;
      margin: 0 var(--gutterInterval , 2px) 0 var(--gutterInterval , 2px);
      background-image: url('');

      &:hover {
        cursor: col-resize;

        [class ^= '@{gutter-collapse-prev}'], [class ^= '@{gutter-collapse-next}'] {
          visibility: visible;
        }
      }

      [class ^= '@{gutter-collapse-prev}'], [class ^= '@{gutter-collapse-next}'] {
        top: @collapse-distance;
      }

      [class ^= '@{gutter-collapse-prev}'] {
        left: -@collapse-gutter-distance;

        .@{arrow} {
          border-right-color: @arrow-color;
          border-left: 0;
        }
      }

      [class ^= '@{gutter-collapse-next}'] {
        right: -@collapse-gutter-distance;

        .@{arrow} {
          border-left-color: @arrow-color;
          border-right: 0;
        }
      }
    }

    &.@{gutter-vertical} {
      position: relative;
      width: 100%;
      cursor: row-resize;
      margin: var(--gutterInterval , 2px) 0 var(--gutterInterval , 2px) 0;
      background-image: url('');

      &:hover {

        [class ^= '@{gutter-collapse-prev}'], [class ^= '@{gutter-collapse-next}'] {
          visibility: visible;
        }
      }

      [class ^= '@{gutter-collapse-prev}'], [class ^= '@{gutter-collapse-next}'] {
        left: @collapse-distance;
      }

      [class ^= '@{gutter-collapse-prev}'] {
        top: -@collapse-gutter-distance;

        .@{arrow} {
          border-bottom-color: @arrow-color;
          border-top: 0;
        }
      }

      [class ^= '@{gutter-collapse-next}'] {
        bottom: -@collapse-gutter-distance;

        .@{arrow} {
          border-top-color: @arrow-color;
          border-bottom: 0;
        }
      }
    }
  }
}
